package com.part2.business.function;

import java.util.List;

import com.part2.beans.News;
import com.part2.common.query.Page;

public interface NewsService {
	
	public List<News> findNews();
	
	public List<News> findNewsByType(Short type);
	
	public Page<News> findNews(Page<News> page,String type);
	
	public Page<News> findNewsBySearch(Page<News> page,String key);
	
	public News findNewsByPrimeKey(String id);
	
	public void deleteNews(String id);

	public void addNews(News news);
	
	public void updateNews(News news);
}
